# -*- coding: utf-8 -*-
# @File      :切片操作
# @Author    :liaogan
# @Datetime  :2023/3/20 22:10

list1=[1,2,3,4,5]
print(list1[0])
print(list1[-5],list1[-2])
print(list1[::-1])
print(list1[:4])
print(list1[3:])
print(list1[:3])